package cn.task.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TaskdataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TaskdataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andTaskidIsNull() {
            addCriterion("taskId is null");
            return (Criteria) this;
        }

        public Criteria andTaskidIsNotNull() {
            addCriterion("taskId is not null");
            return (Criteria) this;
        }

        public Criteria andTaskidEqualTo(Integer value) {
            addCriterion("taskId =", value, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidNotEqualTo(Integer value) {
            addCriterion("taskId <>", value, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidGreaterThan(Integer value) {
            addCriterion("taskId >", value, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidGreaterThanOrEqualTo(Integer value) {
            addCriterion("taskId >=", value, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidLessThan(Integer value) {
            addCriterion("taskId <", value, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidLessThanOrEqualTo(Integer value) {
            addCriterion("taskId <=", value, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidIn(List<Integer> values) {
            addCriterion("taskId in", values, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidNotIn(List<Integer> values) {
            addCriterion("taskId not in", values, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidBetween(Integer value1, Integer value2) {
            addCriterion("taskId between", value1, value2, "taskid");
            return (Criteria) this;
        }

        public Criteria andTaskidNotBetween(Integer value1, Integer value2) {
            addCriterion("taskId not between", value1, value2, "taskid");
            return (Criteria) this;
        }

        public Criteria andEnclosureIsNull() {
            addCriterion("enclosure is null");
            return (Criteria) this;
        }

        public Criteria andEnclosureIsNotNull() {
            addCriterion("enclosure is not null");
            return (Criteria) this;
        }

        public Criteria andEnclosureEqualTo(String value) {
            addCriterion("enclosure =", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureNotEqualTo(String value) {
            addCriterion("enclosure <>", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureGreaterThan(String value) {
            addCriterion("enclosure >", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureGreaterThanOrEqualTo(String value) {
            addCriterion("enclosure >=", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureLessThan(String value) {
            addCriterion("enclosure <", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureLessThanOrEqualTo(String value) {
            addCriterion("enclosure <=", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureLike(String value) {
            addCriterion("enclosure like", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureNotLike(String value) {
            addCriterion("enclosure not like", value, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureIn(List<String> values) {
            addCriterion("enclosure in", values, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureNotIn(List<String> values) {
            addCriterion("enclosure not in", values, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureBetween(String value1, String value2) {
            addCriterion("enclosure between", value1, value2, "enclosure");
            return (Criteria) this;
        }

        public Criteria andEnclosureNotBetween(String value1, String value2) {
            addCriterion("enclosure not between", value1, value2, "enclosure");
            return (Criteria) this;
        }

        public Criteria andSubmiteridIsNull() {
            addCriterion("submiterId is null");
            return (Criteria) this;
        }

        public Criteria andSubmiteridIsNotNull() {
            addCriterion("submiterId is not null");
            return (Criteria) this;
        }

        public Criteria andSubmiteridEqualTo(String value) {
            addCriterion("submiterId =", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridNotEqualTo(String value) {
            addCriterion("submiterId <>", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridGreaterThan(String value) {
            addCriterion("submiterId >", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridGreaterThanOrEqualTo(String value) {
            addCriterion("submiterId >=", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridLessThan(String value) {
            addCriterion("submiterId <", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridLessThanOrEqualTo(String value) {
            addCriterion("submiterId <=", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridLike(String value) {
            addCriterion("submiterId like", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridNotLike(String value) {
            addCriterion("submiterId not like", value, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridIn(List<String> values) {
            addCriterion("submiterId in", values, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridNotIn(List<String> values) {
            addCriterion("submiterId not in", values, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridBetween(String value1, String value2) {
            addCriterion("submiterId between", value1, value2, "submiterid");
            return (Criteria) this;
        }

        public Criteria andSubmiteridNotBetween(String value1, String value2) {
            addCriterion("submiterId not between", value1, value2, "submiterid");
            return (Criteria) this;
        }

        public Criteria andPuliberidIsNull() {
            addCriterion("puliberId is null");
            return (Criteria) this;
        }

        public Criteria andPuliberidIsNotNull() {
            addCriterion("puliberId is not null");
            return (Criteria) this;
        }

        public Criteria andPuliberidEqualTo(String value) {
            addCriterion("puliberId =", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidNotEqualTo(String value) {
            addCriterion("puliberId <>", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidGreaterThan(String value) {
            addCriterion("puliberId >", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidGreaterThanOrEqualTo(String value) {
            addCriterion("puliberId >=", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidLessThan(String value) {
            addCriterion("puliberId <", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidLessThanOrEqualTo(String value) {
            addCriterion("puliberId <=", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidLike(String value) {
            addCriterion("puliberId like", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidNotLike(String value) {
            addCriterion("puliberId not like", value, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidIn(List<String> values) {
            addCriterion("puliberId in", values, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidNotIn(List<String> values) {
            addCriterion("puliberId not in", values, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidBetween(String value1, String value2) {
            addCriterion("puliberId between", value1, value2, "puliberid");
            return (Criteria) this;
        }

        public Criteria andPuliberidNotBetween(String value1, String value2) {
            addCriterion("puliberId not between", value1, value2, "puliberid");
            return (Criteria) this;
        }

        public Criteria andUploaddateIsNull() {
            addCriterion("uploadDate is null");
            return (Criteria) this;
        }

        public Criteria andUploaddateIsNotNull() {
            addCriterion("uploadDate is not null");
            return (Criteria) this;
        }

        public Criteria andUploaddateEqualTo(Date value) {
            addCriterionForJDBCDate("uploadDate =", value, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateNotEqualTo(Date value) {
            addCriterionForJDBCDate("uploadDate <>", value, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateGreaterThan(Date value) {
            addCriterionForJDBCDate("uploadDate >", value, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("uploadDate >=", value, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateLessThan(Date value) {
            addCriterionForJDBCDate("uploadDate <", value, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("uploadDate <=", value, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateIn(List<Date> values) {
            addCriterionForJDBCDate("uploadDate in", values, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateNotIn(List<Date> values) {
            addCriterionForJDBCDate("uploadDate not in", values, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("uploadDate between", value1, value2, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andUploaddateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("uploadDate not between", value1, value2, "uploaddate");
            return (Criteria) this;
        }

        public Criteria andSubmiternameIsNull() {
            addCriterion("submiterName is null");
            return (Criteria) this;
        }

        public Criteria andSubmiternameIsNotNull() {
            addCriterion("submiterName is not null");
            return (Criteria) this;
        }

        public Criteria andSubmiternameEqualTo(String value) {
            addCriterion("submiterName =", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameNotEqualTo(String value) {
            addCriterion("submiterName <>", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameGreaterThan(String value) {
            addCriterion("submiterName >", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameGreaterThanOrEqualTo(String value) {
            addCriterion("submiterName >=", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameLessThan(String value) {
            addCriterion("submiterName <", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameLessThanOrEqualTo(String value) {
            addCriterion("submiterName <=", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameLike(String value) {
            addCriterion("submiterName like", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameNotLike(String value) {
            addCriterion("submiterName not like", value, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameIn(List<String> values) {
            addCriterion("submiterName in", values, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameNotIn(List<String> values) {
            addCriterion("submiterName not in", values, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameBetween(String value1, String value2) {
            addCriterion("submiterName between", value1, value2, "submitername");
            return (Criteria) this;
        }

        public Criteria andSubmiternameNotBetween(String value1, String value2) {
            addCriterion("submiterName not between", value1, value2, "submitername");
            return (Criteria) this;
        }

        public Criteria andPulibernameIsNull() {
            addCriterion("puliberName is null");
            return (Criteria) this;
        }

        public Criteria andPulibernameIsNotNull() {
            addCriterion("puliberName is not null");
            return (Criteria) this;
        }

        public Criteria andPulibernameEqualTo(String value) {
            addCriterion("puliberName =", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameNotEqualTo(String value) {
            addCriterion("puliberName <>", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameGreaterThan(String value) {
            addCriterion("puliberName >", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameGreaterThanOrEqualTo(String value) {
            addCriterion("puliberName >=", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameLessThan(String value) {
            addCriterion("puliberName <", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameLessThanOrEqualTo(String value) {
            addCriterion("puliberName <=", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameLike(String value) {
            addCriterion("puliberName like", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameNotLike(String value) {
            addCriterion("puliberName not like", value, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameIn(List<String> values) {
            addCriterion("puliberName in", values, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameNotIn(List<String> values) {
            addCriterion("puliberName not in", values, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameBetween(String value1, String value2) {
            addCriterion("puliberName between", value1, value2, "pulibername");
            return (Criteria) this;
        }

        public Criteria andPulibernameNotBetween(String value1, String value2) {
            addCriterion("puliberName not between", value1, value2, "pulibername");
            return (Criteria) this;
        }

        public Criteria andTasknameIsNull() {
            addCriterion("taskName is null");
            return (Criteria) this;
        }

        public Criteria andTasknameIsNotNull() {
            addCriterion("taskName is not null");
            return (Criteria) this;
        }

        public Criteria andTasknameEqualTo(String value) {
            addCriterion("taskName =", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameNotEqualTo(String value) {
            addCriterion("taskName <>", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameGreaterThan(String value) {
            addCriterion("taskName >", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameGreaterThanOrEqualTo(String value) {
            addCriterion("taskName >=", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameLessThan(String value) {
            addCriterion("taskName <", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameLessThanOrEqualTo(String value) {
            addCriterion("taskName <=", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameLike(String value) {
            addCriterion("taskName like", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameNotLike(String value) {
            addCriterion("taskName not like", value, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameIn(List<String> values) {
            addCriterion("taskName in", values, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameNotIn(List<String> values) {
            addCriterion("taskName not in", values, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameBetween(String value1, String value2) {
            addCriterion("taskName between", value1, value2, "taskname");
            return (Criteria) this;
        }

        public Criteria andTasknameNotBetween(String value1, String value2) {
            addCriterion("taskName not between", value1, value2, "taskname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}